#!/bin/bash
IP=`ip a|grep inet|grep -v 127.0.0.1|grep -v inet6|grep -v 192.168.122.1|awk {'print $2'}|awk -F/ {'print $1'}`
cd /home/taiga  
git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist  
cd taiga-front-dist/  
git checkout stable  
cd dist/  
sed -e "s/localhost/$IP/" conf.example.json > conf.json
chown -R taiga.taiga /home/taiga/taiga-front-dist
#systemctl start circus.service

